<template>
    <div class="hot">
        <div class="hot-top">
            <img src="http://img1.qunarzz.com/piao/fusion/1711/16/bfbb9874e8f11402.png" alt="">
            <span>热门榜单</span>
            <span class="hot-title">全部榜单</span>
        </div>
        <ul class="hot-list">
            <li class="hot-item" v-for="(img, index) in hotList" :key="index">
                <img :src="img.url" alt="">
                <p>{{img.title}}</p>
                <p><span class="hot-mark">￥{{img.mark}}</span>起</p>
            </li>
        </ul>
    </div>
</template>
<script>
export default {
    props:['hotList'],
    data() {
        return {
            
        }
    },
}
</script>
<style scoped>
.hot{
    background-color: #fff;
    font-size: .28rem;
    padding-left: .2rem;
    margin-bottom: .2rem;
    
    }
.hot-top{
    padding-top: .2rem;
    font-size: .32rem;
}
.hot-top img{
    width: .28rem;
}
.hot-title{
    position: absolute;
    right: .2rem;
    font-size: .28rem;
}
.hot-list{
    padding-top: .1rem;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    height: 3rem;
}
.hot-item{
    display: inline-block;
    width: 2rem;
    height: 2rem;
    font-size: .24rem;
    padding-right:.2rem;
    
}
.hot-item img{
    width: 100%;
    height: 100%;
}
.hot-item p{
    margin-top: .1rem;
    text-align: center;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.hot-item span{
    text-align: center;
}
.hot-mark{
    color: red;
}
</style>